#include<stdio.h>
int main()
{
    int a = 4095,b=0,c=0;
    b=a&0xff;
    c=(a>>8)&0xff;
    void printbin(int x);
    printf("a=");
    printbin(a);
    printf("b=");
    printbin(b);
    printf("c=");
    printbin(c);
    return 0;
}
void printbin(int x)
{
    for(int i=16;i>=0;i--)
    {
        ((x&(1<<i))==(1<<i))?(printf("1")):(printf("0"));
    }
    printf("\n");
}
